package com.sina.weibo;

import android.app.AlertDialog;
import android.app.AlertDialog.Builder;
import android.app.Dialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.DialogInterface.OnClickListener;
import android.content.Intent;
import android.content.res.Resources;
import android.graphics.Bitmap;
import android.graphics.Bitmap.Config;
import android.graphics.BitmapFactory;
import android.graphics.BitmapFactory.Options;
import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.Drawable;
import android.net.Uri;
import android.net.Uri.Builder;
import android.os.AsyncTask;
import android.os.AsyncTask.Status;
import android.os.Bundle;
import android.os.Handler;
import android.text.ClipboardManager;
import android.text.Spannable;
import android.text.TextUtils;
import android.text.method.LinkMovementMethod;
import android.text.method.MovementMethod;
import android.view.Display;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.View.OnLongClickListener;
import android.view.WindowManager;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;
import android.widget.Toast;
import com.sina.weibo.models.MBlog;
import com.sina.weibo.models.User;
import java.io.File;
import java.util.Date;
import sudroid.android.FileUtil;
import sudroid.android.views.DialogUtil;

public class DetailWeiboActivity extends BaseActivity
  implements View.OnClickListener, DialogInterface.OnClickListener, View.OnLongClickListener
{
  private static final int DEFAULT_DELAY = 500;
  private static final int DIALOG_ALERT_DELETE = 1001;
  private static final int DIALOG_ALERT_REASON_COPY = 1003;
  private static final int DIALOG_ALERT_REPORT = 1004;
  private static final int DIALOG_ALERT_SHARE = 1;
  private static final int DIALOG_ALERT_SRC_COPY = 1002;
  public static final String EXTRA_IS_SELF = "EXTRA_IS_SELF";
  public static final String EXTRA_RESULT_SELECTED = "EXTRA_RESULT_SELECTED";
  public static final String KEY_MBLOG = "KEY_MBLOG";
  public static final String KEY_MUSR = "KEY_MUSR";
  private static final int REQUEST_CODE_CHOICE = 1000;
  public static final int RESULT_DELETE = 2;
  public static final int RESULT_REFRESH = 3;
  public static final int RESULT_REPORT = 4;
  public static final int RESULT_SHARE = 1;
  private static final int WHAT_ADD_FAV = 1000;
  private static final int WHAT_BIG_SIZE_IMG = 1005;
  private static final int WHAT_COMMENT = 1002;
  private static final int WHAT_DELETE_WEIBO = 1008;
  private static final int WHAT_DEL_FAV = 1006;
  private static final int WHAT_FINISH = 999;
  private static final int WHAT_FORWARD = 1001;
  private static final int WHAT_PROFILE = 1004;
  private static final int WHAT_REFRESH = 1007;
  private MBlog blog;
  private Button btComment2;
  private Button btRedirect;
  private ClipboardManager clipboardManager;
  private MenuItem deleteItem;
  public boolean deleteWeiboRunning;
  private File downloadedImage;
  public boolean favSndingRunning;
  private boolean finishPicLoad;
  private boolean isFav;
  private boolean isRedirectBlog;
  private boolean isSelf;
  private ImageView ivPic;
  private ImageView ivPortrait;
  private ImageView ivSrcPic;
  private ImageView ivVip;
  public boolean loadCRNumRunning;
  public boolean loadPictureRunning;
  private AsyncTask<Void, Void, Boolean> mDeleteWeiboTask;
  private MBlog mMblog;
  private User mUsr;
  private LoadPictureTask mldPicTsk;
  private boolean needRefresh;
  private LoadCRNumTask numTask;
  private Bitmap portrait;
  private boolean portraitLoaded;
  private Dialog reasonChoiceDialog;
  private String[] reasonItems;
  private MenuItem refreshItem;
  private MenuItem returnItem;
  private RelativeLayout rlPic;
  private Handler sendChng;
  private AlertDialog shareDialog;
  protected boolean shareInMailRunning;
  private MenuItem shareItem;
  private String[] shareItems;
  private Dialog srcChoiceDialog;
  private CharSequence[] srcItems;
  private TextView tvComment;
  private TextView tvCommentRt;
  private TextView tvContent;
  private TextView tvFav;
  private TextView tvForward;
  private TextView tvMore;
  private TextView tvName;
  private TextView tvReason;
  private TextView tvRedirectRt;
  private TextView tvReload;
  private TextView tvUpdateDate;
  private TextView tvVia;
  private View vProfile;

  public DetailWeiboActivity()
  {
    DetailWeiboActivity.1 local1 = new DetailWeiboActivity.1(this);
    Handler localHandler = new Handler(local1);
    this.sendChng = localHandler;
  }

  private void blogForward()
  {
    MBlog localMBlog = this.mMblog;
    Intent localIntent = Utils.forwardMBlog(this, localMBlog);
    startActivity(localIntent);
  }

  private void comment()
  {
    String str1 = this.mMblog.mblogid;
    String str2 = this.mMblog.uid;
    Intent localIntent = Utils.simpleComment(this, str1, str2);
    startActivity(localIntent);
  }

  private void deleteWeibo()
  {
    if (this.mDeleteWeiboTask != null)
    {
      AsyncTask.Status localStatus1 = this.mDeleteWeiboTask.getStatus();
      AsyncTask.Status localStatus2 = AsyncTask.Status.RUNNING;
      if (localStatus1 == localStatus2)
        boolean bool = this.mDeleteWeiboTask.cancel(1);
    }
    DeleteWeiboTask localDeleteWeiboTask = new DeleteWeiboTask(null);
    Void[] arrayOfVoid = new Void[0];
    AsyncTask localAsyncTask = localDeleteWeiboTask.execute(arrayOfVoid);
    this.mDeleteWeiboTask = localAsyncTask;
  }

  private Bitmap loadPortrait(MBlog paramMBlog)
  {
    String str1 = getCacheDir().getAbsolutePath();
    String str2 = paramMBlog.portrait;
    Bitmap localBitmap1 = BitmapFactory.decodeFile(Utils.checkCache(str1, str2));
    this.portrait = localBitmap1;
    if (this.portrait == null)
    {
      Bitmap localBitmap2 = ((BitmapDrawable)getResources().getDrawable(2130838011)).getBitmap();
      this.portrait = localBitmap2;
    }
    while (true)
    {
      if (this.portrait.isRecycled())
      {
        String str3 = getCacheDir().getAbsolutePath();
        String str4 = paramMBlog.portrait;
        Bitmap localBitmap3 = BitmapFactory.decodeFile(Utils.checkCache(str3, str4));
        this.portrait = localBitmap3;
      }
      return this.portrait;
      if (!this.portrait.isRecycled())
        continue;
      String str5 = getCacheDir().getAbsolutePath();
      String str6 = paramMBlog.portrait;
      Bitmap localBitmap4 = BitmapFactory.decodeFile(Utils.checkCache(str5, str6));
      this.portrait = localBitmap4;
    }
  }

  private void processChoiceResult(Intent paramIntent)
  {
    if (paramIntent == null);
    while (true)
    {
      return;
      switch (paramIntent.getIntExtra("EXTRA_RESULT_SELECTED", -1))
      {
      default:
        break;
      case 1:
        showDialog(1);
        break;
      case 2:
        showDialog(1001);
        break;
      case 3:
        boolean bool = this.sendChng.sendEmptyMessageDelayed(1007, 500L);
        break;
      case 4:
        showDialog(1004);
      }
    }
  }

  private void refresh()
  {
    if (this.needRefresh)
    {
      if ((this.mMblog.pic != null) && (this.mMblog.pic.length() != 0))
      {
        ImageView localImageView1 = this.ivPic;
        Drawable localDrawable = getResources().getDrawable(2130837967);
        localImageView1.setImageDrawable(localDrawable);
      }
      this.loadPictureRunning = 1;
      if (this.mldPicTsk != null)
      {
        AsyncTask.Status localStatus1 = this.mldPicTsk.getStatus();
        AsyncTask.Status localStatus2 = AsyncTask.Status.RUNNING;
        if (localStatus1 == localStatus2)
          boolean bool = this.mldPicTsk.cancel(1);
      }
      LoadPictureTask localLoadPictureTask1 = new LoadPictureTask(null);
      Object[] arrayOfObject = new Object[3];
      String str = this.mMblog.pic;
      arrayOfObject[0] = str;
      ImageView localImageView2 = this.ivPic;
      arrayOfObject[1] = localImageView2;
      ImageView localImageView3 = this.ivSrcPic;
      arrayOfObject[2] = localImageView3;
      LoadPictureTask localLoadPictureTask2 = (LoadPictureTask)localLoadPictureTask1.execute(arrayOfObject);
      this.mldPicTsk = localLoadPictureTask2;
    }
    while (true)
    {
      LoadCRNumTask localLoadCRNumTask1 = new LoadCRNumTask(null);
      this.numTask = localLoadCRNumTask1;
      LoadCRNumTask localLoadCRNumTask2 = this.numTask;
      Void[] arrayOfVoid = new Void[0];
      AsyncTask localAsyncTask = localLoadCRNumTask2.execute(arrayOfVoid);
      return;
      this.loadPictureRunning = 0;
    }
  }

  private void reportWeibo(String paramString)
  {
    ReportWeiboTask localReportWeiboTask = new ReportWeiboTask(null);
    String[] arrayOfString = new String[1];
    arrayOfString[0] = paramString;
    AsyncTask localAsyncTask = localReportWeiboTask.execute(arrayOfString);
  }

  private void setTitleProgressbarInvisible()
  {
    if ((!this.loadCRNumRunning) && (!this.deleteWeiboRunning) && (!this.loadPictureRunning) && (!this.favSndingRunning) && (!this.shareInMailRunning))
      setProgressBarIndeterminateVisibility(0);
  }

  private void setUIDisplay(MBlog paramMBlog)
  {
    Intent localIntent = getIntent();
    this.mMblog = paramMBlog;
    User localUser = (User)localIntent.getSerializableExtra("KEY_MUSR");
    this.mUsr = localUser;
    String str1 = getString(2131427328);
    String str2;
    label158: label186: label213: label237: int k;
    if (this.mMblog == null)
    {
      str2 = null;
      setAppTitle(str1, str2);
      ImageView localImageView = this.ivPortrait;
      Bitmap localBitmap1 = loadPortrait(paramMBlog);
      boolean bool1 = this.mMblog.vip;
      Bitmap localBitmap2 = Utils.outputBmp(this, localBitmap1, bool1);
      localImageView.setImageBitmap(localBitmap2);
      TextView localTextView2 = this.tvName;
      String str3 = paramMBlog.nick;
      localTextView2.setText(str3);
      String str4 = this.mUsr.uid;
      String str5 = this.mMblog.uid;
      boolean bool2 = str4.equals(str5);
      this.isSelf = bool2;
      if (!TextUtils.isEmpty(paramMBlog.favid))
        break label694;
      int i = 0;
      this.isFav = i;
      TextView localTextView1 = this.tvFav;
      if (!this.isFav)
        break label701;
      str2 = getString(2131427517);
      localTextView1.setText(str2);
      if (!this.isFav)
        break label713;
      this.tvFav.setCompoundDrawablesWithIntrinsicBounds(0, 2130837595, 0, 0);
      localTextView1 = this.tvVia;
      if (!TextUtils.isEmpty(this.mMblog.src))
        break label729;
      str2 = "";
      localTextView1.setText(str2);
      if (this.mMblog.rtnum >= 0)
        break label764;
      j = 0;
      label257: String str6 = String.valueOf(j);
      Button localButton1 = this.btRedirect;
      String str7 = String.valueOf(getString(2131427432));
      String str8 = str7 + str6;
      localButton1.setText(str8);
      Button localButton2 = (Button)findViewById(2131623989);
      this.btComment2 = localButton2;
      if (this.mMblog.commentnum >= 0)
        break label776;
      j = 0;
      label339: String str9 = String.valueOf(j);
      Button localButton3 = this.btComment2;
      String str10 = String.valueOf(getString(2131427433));
      String str11 = str10 + str9;
      localButton3.setText(str11);
      this.btComment2.setOnClickListener(this);
      if (!TextUtils.isEmpty(paramMBlog.rtrootuid))
        break label788;
      j = 0;
      label413: this.isRedirectBlog = j;
      if ((this.mMblog.pic == null) || (this.mMblog.pic.length() == 0))
        break label795;
      k = 1;
      label445: if (!this.isRedirectBlog)
        break label878;
      if (k != 0)
      {
        this.ivSrcPic.setVisibility(0);
        this.ivPic.setVisibility(8);
        this.rlPic.setVisibility(8);
      }
      findViewById(2131623980).setVisibility(0);
      this.tvContent.setOnLongClickListener(this);
      TextView localTextView3 = this.tvContent;
      Object[] arrayOfObject1 = new Object[3];
      String str12 = paramMBlog.rtrootnick;
      arrayOfObject1[0] = str12;
      arrayOfObject1[1] = ": ";
      String str13 = paramMBlog.content;
      arrayOfObject1[2] = str13;
      String str14 = String.format("@%s%s %s", arrayOfObject1);
      localTextView3.setText(str14);
      Spannable localSpannable1 = (Spannable)this.tvContent.getText();
      String str15 = this.mUsr.gsid;
      Utils.highlightContentClickable(this, localSpannable1, str15);
      TextView localTextView4 = this.tvContent;
      MovementMethod localMovementMethod1 = LinkMovementMethod.getInstance();
      localTextView4.setMovementMethod(localMovementMethod1);
      if (!TextUtils.isEmpty(paramMBlog.rtreason))
        break label801;
      this.tvReason.setText(2131427554);
      label629: String str16 = Utils.dateFormat(this.mMblog.time.getTime());
      this.tvUpdateDate.setText(str16);
      if (!TextUtils.isEmpty(this.mMblog.pic))
        break label1008;
    }
    label694: label701: label713: label729: label878: label1008: for (int j = 0; ; j = 1)
    {
      this.needRefresh = j;
      refresh();
      return;
      str2 = this.mMblog.nick;
      break;
      j = 1;
      break label158;
      str2 = getString(2131427516);
      break label186;
      this.tvFav.setCompoundDrawablesWithIntrinsicBounds(0, 2130837598, 0, 0);
      break label213;
      Object[] arrayOfObject2 = new Object[1];
      String str17 = this.mMblog.src;
      arrayOfObject2[0] = str17;
      str2 = getString(2131427556, arrayOfObject2);
      break label237;
      label764: j = this.mMblog.rtnum;
      break label257;
      j = this.mMblog.commentnum;
      break label339;
      j = 1;
      break label413;
      k = 0;
      break label445;
      TextView localTextView5 = this.tvReason;
      String str18 = paramMBlog.rtreason;
      localTextView5.setText(str18);
      Spannable localSpannable2 = (Spannable)this.tvReason.getText();
      String str19 = this.mUsr.gsid;
      Utils.highlightContentClickable(this, localSpannable2, str19);
      TextView localTextView6 = this.tvReason;
      MovementMethod localMovementMethod2 = LinkMovementMethod.getInstance();
      localTextView6.setMovementMethod(localMovementMethod2);
      this.tvReason.setOnLongClickListener(this);
      break label629;
      if (k != 0)
      {
        this.ivPic.setVisibility(0);
        this.rlPic.setVisibility(0);
        this.ivSrcPic.setVisibility(8);
      }
      if (TextUtils.isEmpty(paramMBlog.content))
      {
        this.tvReason.setText(2131427554);
        break label629;
      }
      TextView localTextView7 = this.tvReason;
      String str20 = paramMBlog.content;
      localTextView7.setText(str20);
      Spannable localSpannable3 = (Spannable)this.tvReason.getText();
      String str21 = this.mUsr.gsid;
      Utils.highlightContentClickable(this, localSpannable3, str21);
      TextView localTextView8 = this.tvReason;
      MovementMethod localMovementMethod3 = LinkMovementMethod.getInstance();
      localTextView8.setMovementMethod(localMovementMethod3);
      this.tvReason.setOnLongClickListener(this);
      break label629;
    }
  }

  private void shareDialogAction(int paramInt)
  {
    Object localObject = null;
    String str1 = this.shareItems[paramInt];
    String str2 = getString(2131427561);
    String str5;
    if (str1.equals(str2))
    {
      Uri.Builder localBuilder1 = new Uri.Builder();
      Uri.Builder localBuilder2 = localBuilder1.scheme("sms");
      Uri localUri = localBuilder1.build();
      Intent localIntent1 = new Intent("android.intent.action.SENDTO", localUri);
      if (this.isRedirectBlog)
      {
        String str3 = "@%s : %s%s";
        Object[] arrayOfObject = new Object[3];
        String str4 = this.mMblog.nick;
        arrayOfObject[0] = str4;
        int i = 1;
        if (TextUtils.isEmpty(this.mMblog.rtreason))
        {
          localObject = "";
          arrayOfObject[i] = localObject;
          i = 2;
          if (!TextUtils.isEmpty(this.mMblog.content))
            break label320;
          localObject = "";
          arrayOfObject[i] = localObject;
          str5 = String.format(str3, arrayOfObject);
          if (this.mMblog.pic != null)
          {
            String str6 = String.valueOf(str5);
            StringBuilder localStringBuilder1 = new StringBuilder(str6);
            String str7 = getString(2131427715);
            StringBuilder localStringBuilder2 = localStringBuilder1.append(str7);
            String str8 = this.mMblog.pic;
            str5 = str8;
          }
          String str9 = String.valueOf(str5);
          StringBuilder localStringBuilder3 = new StringBuilder(str9);
          String str10 = getString(2131427716);
          String str11 = str10;
          Intent localIntent2 = localIntent1.putExtra("sms_body", str11);
          startActivity(localIntent1);
        }
      }
    }
    while (true)
    {
      return;
      String str12 = String.valueOf(this.mMblog.rtreason);
      localObject = str12 + "\n\n";
      break;
      label320: localObject = new java/lang/StringBuilder;
      if (TextUtils.isEmpty(this.mMblog.rtrootnick));
      StringBuilder localStringBuilder4;
      String str16;
      for (String str13 = ""; ; str13 = str16 + " ")
      {
        String str14 = String.valueOf(str13);
        ((StringBuilder)localObject).<init>(str14);
        String str15 = this.mMblog.content.trim();
        localObject = str15;
        break;
        localStringBuilder4 = new StringBuilder("转自于@");
        str16 = this.mMblog.rtrootnick;
      }
      if (TextUtils.isEmpty(this.mMblog.content));
      for (str5 = getString(2131427554); ; str5 = this.mMblog.content)
        break;
      String str17 = getString(2131427562);
      if (!str1.equals(str17))
        continue;
      DetailWeiboActivity.4 local4 = new DetailWeiboActivity.4(this);
      Void[] arrayOfVoid = new Void[0];
      AsyncTask localAsyncTask = local4.execute(arrayOfVoid);
    }
  }

  private void viewBigsizeBmp()
  {
    if ((this.mMblog != null) && (this.mMblog.pic != null))
    {
      Intent localIntent1 = new Intent(this, ImageViewer.class);
      Intent localIntent2 = localIntent1.putExtra("KEY_EXTRA_LOADMODE", "LOAD_MODE_NET");
      String str1 = this.mMblog.pic;
      Intent localIntent3 = localIntent1.putExtra("KEY_EXTRA_URL", str1);
      String str2 = SettingsPref.getDownloadImageSize(this);
      Intent localIntent4 = localIntent1.putExtra("LOAD_MODE_SIZE", str2);
      startActivity(localIntent1);
    }
  }

  private void viewProfile()
  {
    Intent localIntent1 = new Intent(this, UserInfoActivity2.class);
    String str1 = this.mMblog.uid;
    Intent localIntent2 = localIntent1.putExtra("uid", str1);
    String str2 = this.mMblog.nick;
    Intent localIntent3 = localIntent1.putExtra("nick", str2);
    String str3 = this.mUsr.uid;
    Intent localIntent4 = localIntent1.putExtra("myuid", str3);
    boolean bool = this.mMblog.vip;
    Intent localIntent5 = localIntent1.putExtra("vip", bool);
    startActivity(localIntent1);
  }

  protected void handleTitleBarEvent(int paramInt)
  {
    switch (paramInt)
    {
    default:
    case 0:
    case 1:
    }
    while (true)
    {
      return;
      Intent localIntent1 = new Intent(this, MainTabActivity.class);
      Intent localIntent2 = localIntent1.putExtra("MODE_KEY", 0);
      Intent localIntent3 = localIntent1.setAction("com.sina.weibo.action.go_back_to_home");
      startActivity(localIntent1);
      finish();
      continue;
      finish();
    }
  }

  protected void onActivityResult(int paramInt1, int paramInt2, Intent paramIntent)
  {
    super.onActivityResult(paramInt1, paramInt2, paramIntent);
    if (paramInt2 != -1);
    while (true)
    {
      return;
      switch (paramInt1)
      {
      default:
        break;
      case 1000:
        processChoiceResult(paramIntent);
      }
    }
  }

  public void onClick(DialogInterface paramDialogInterface, int paramInt)
  {
    if (this.shareDialog == paramDialogInterface)
      shareDialogAction(paramInt);
    while (true)
    {
      return;
      if (this.srcChoiceDialog == paramDialogInterface)
      {
        String str1 = this.srcItems[paramInt].toString();
        String str2 = getString(2131427600);
        if (!str1.equals(str2))
          continue;
        ClipboardManager localClipboardManager1 = this.clipboardManager;
        CharSequence localCharSequence1 = this.tvContent.getText();
        localClipboardManager1.setText(localCharSequence1);
        Toast.makeText(this, 2131427602, 0).show();
        continue;
      }
      if (this.reasonChoiceDialog != paramDialogInterface)
        continue;
      String str3 = this.reasonItems[paramInt];
      String str4 = getString(2131427601);
      if (!str3.equals(str4))
        continue;
      ClipboardManager localClipboardManager2 = this.clipboardManager;
      CharSequence localCharSequence2 = this.tvReason.getText();
      localClipboardManager2.setText(localCharSequence2);
      Toast.makeText(this, 2131427602, 0).show();
    }
  }

  public void onClick(View paramView)
  {
    if ((this.tvForward == paramView) || (this.btRedirect == paramView))
      boolean bool1 = this.sendChng.sendEmptyMessageDelayed(1001, 500L);
    while (true)
    {
      return;
      if (this.tvComment == paramView)
      {
        boolean bool2 = this.sendChng.sendEmptyMessageDelayed(1002, 500L);
        continue;
      }
      if (this.vProfile == paramView)
      {
        boolean bool3 = this.sendChng.sendEmptyMessageDelayed(1004, 500L);
        continue;
      }
      if ((this.ivPic == paramView) || (this.ivSrcPic == paramView))
      {
        if (!this.finishPicLoad)
          continue;
        boolean bool4 = this.sendChng.sendEmptyMessageDelayed(1005, 500L);
        continue;
      }
      TextView localTextView1 = this.tvFav;
      if (paramView == localTextView1)
      {
        if (!this.isFav)
        {
          boolean bool5 = this.sendChng.sendEmptyMessageDelayed(1000, 500L);
          this.tvFav.setEnabled(0);
          continue;
        }
        if (TextUtils.isEmpty(this.mMblog.favid))
        {
          String str1 = getString(2131427557);
          Toast.makeText(this, str1, 0).show();
          continue;
        }
        boolean bool6 = this.sendChng.sendEmptyMessageDelayed(1006, 500L);
        this.tvFav.setEnabled(0);
        continue;
      }
      TextView localTextView2 = this.tvReload;
      if (paramView == localTextView2)
      {
        boolean bool7 = this.sendChng.sendEmptyMessageDelayed(1007, 500L);
        continue;
      }
      TextView localTextView3 = this.tvMore;
      if (paramView == localTextView3)
      {
        Intent localIntent1 = new Intent();
        Context localContext = getApplicationContext();
        Intent localIntent2 = localIntent1.setClass(localContext, ChoiceActivity.class).putExtra("com.sina.weibo.ChoiceActivity.EXTRA_LAUCH_MODE", 1);
        if (this.isSelf)
          Intent localIntent3 = localIntent2.putExtra("EXTRA_IS_SELF", 1);
        startActivityForResult(localIntent2, 1000);
        continue;
      }
      Button localButton = this.btComment2;
      if (paramView == localButton)
      {
        Intent localIntent4 = new Intent(this, CommentBlog.class);
        String str2 = this.mMblog.mblogid;
        Intent localIntent5 = localIntent4.putExtra("id", str2);
        String str3 = this.mMblog.uid;
        Intent localIntent6 = localIntent4.putExtra("uid", str3);
        Intent localIntent7 = localIntent4.putExtra("MODE", 1);
        startActivity(localIntent4);
        continue;
      }
      super.onClick(paramView);
    }
  }

  protected void onCreate(Bundle paramBundle)
  {
    super.onCreate(paramBundle);
    Display localDisplay = getWindowManager().getDefaultDisplay();
    int i = localDisplay.getWidth();
    int j = localDisplay.getHeight();
    WeiboApplication.setDisplay(i, j);
    setView(2130903050);
    String str1 = getString(2131427528);
    String str2 = getString(2131427648);
    String str3 = getString(2131427368);
    setTitleBar(1, str1, str2, str3);
    ImageView localImageView1 = (ImageView)findViewById(2131623973);
    this.ivPortrait = localImageView1;
    TextView localTextView1 = (TextView)findViewById(2131623974);
    this.tvName = localTextView1;
    TextView localTextView2 = (TextView)findViewById(2131623979);
    this.tvReason = localTextView2;
    TextView localTextView3 = (TextView)findViewById(2131623991);
    this.tvUpdateDate = localTextView3;
    TextView localTextView4 = (TextView)findViewById(2131623981);
    this.tvContent = localTextView4;
    ImageView localImageView2 = (ImageView)findViewById(2131623986);
    this.ivPic = localImageView2;
    this.ivPic.setOnClickListener(this);
    RelativeLayout localRelativeLayout = (RelativeLayout)findViewById(2131623985);
    this.rlPic = localRelativeLayout;
    ImageView localImageView3 = (ImageView)findViewById(2131623982);
    this.ivSrcPic = localImageView3;
    this.ivSrcPic.setOnClickListener(this);
    View localView = findViewById(2131623972);
    this.vProfile = localView;
    this.vProfile.setOnClickListener(this);
    ImageView localImageView4 = (ImageView)findViewById(2131623975);
    this.ivVip = localImageView4;
    TextView localTextView5 = (TextView)findViewById(2131623990);
    this.tvVia = localTextView5;
    TextView localTextView6 = (TextView)findViewById(2131623970);
    this.tvFav = localTextView6;
    this.tvFav.setOnClickListener(this);
    TextView localTextView7 = (TextView)findViewById(2131623969);
    this.tvForward = localTextView7;
    this.tvForward.setOnClickListener(this);
    TextView localTextView8 = (TextView)findViewById(2131623968);
    this.tvComment = localTextView8;
    this.tvComment.setOnClickListener(this);
    TextView localTextView9 = (TextView)findViewById(2131623967);
    this.tvReload = localTextView9;
    this.tvReload.setOnClickListener(this);
    TextView localTextView10 = (TextView)findViewById(2131623971);
    this.tvMore = localTextView10;
    this.tvMore.setOnClickListener(this);
    Button localButton = (Button)findViewById(2131623988);
    this.btRedirect = localButton;
    this.btRedirect.setOnClickListener(this);
    TextView localTextView11 = (TextView)findViewById(2131623983);
    this.tvRedirectRt = localTextView11;
    TextView localTextView12 = (TextView)findViewById(2131623984);
    this.tvCommentRt = localTextView12;
    ClipboardManager localClipboardManager = (ClipboardManager)getSystemService("clipboard");
    this.clipboardManager = localClipboardManager;
    MBlog localMBlog = (MBlog)getIntent().getSerializableExtra("KEY_MBLOG");
    this.blog = localMBlog;
    setUIDisplay(localMBlog);
  }

  protected Dialog onCreateDialog(int paramInt)
  {
    Object localObject = null;
    switch (paramInt)
    {
    default:
    case 1:
    case 1001:
    case 1002:
    case 1003:
    case 1004:
    }
    while (true)
    {
      return localObject;
      AlertDialog.Builder localBuilder1 = new AlertDialog.Builder(this);
      String[] arrayOfString1 = getResources().getStringArray(2131165195);
      this.shareItems = arrayOfString1;
      AlertDialog localAlertDialog = localBuilder1.setItems(arrayOfString1, this).setTitle(2131427560).create();
      this.shareDialog = localAlertDialog;
      localObject = this.shareDialog;
      continue;
      String str1 = getString(2131427595);
      String str2 = getString(2131427596);
      String str3 = getString(2131427441);
      String str4 = getString(2131427436);
      DetailWeiboActivity.2 local2 = new DetailWeiboActivity.2(this);
      localObject = DialogUtil.getStdAlertDialog(this, str1, str2, str3, str4, local2);
      continue;
      String str5 = getString(2131427595);
      String[] arrayOfString2 = getResources().getStringArray(2131165196);
      this.srcItems = arrayOfString2;
      Dialog localDialog1 = DialogUtil.getStdListAlertDialog(this, str5, arrayOfString2, this);
      this.srcChoiceDialog = localDialog1;
      localObject = this.srcChoiceDialog;
      continue;
      String str6 = getString(2131427595);
      String[] arrayOfString3 = getResources().getStringArray(2131165197);
      this.reasonItems = arrayOfString3;
      Dialog localDialog2 = DialogUtil.getStdListAlertDialog(this, str6, arrayOfString3, this);
      this.reasonChoiceDialog = localDialog2;
      localObject = this.reasonChoiceDialog;
      continue;
      EditText localEditText = new EditText(this);
      localEditText.setMinLines(6);
      localEditText.setGravity(51);
      AlertDialog.Builder localBuilder2 = new AlertDialog.Builder(this).setTitle(2131427615).setView(localEditText);
      DetailWeiboActivity.3 local3 = new DetailWeiboActivity.3(this, localEditText);
      localObject = localBuilder2.setPositiveButton(2131427441, local3).create();
    }
  }

  public boolean onCreateOptionsMenu(Menu paramMenu)
  {
    getMenuInflater().inflate(2131558400, paramMenu);
    MenuItem localMenuItem1 = paramMenu.findItem(2131624232);
    this.returnItem = localMenuItem1;
    MenuItem localMenuItem2 = paramMenu.findItem(2131624233);
    this.deleteItem = localMenuItem2;
    MenuItem localMenuItem3 = paramMenu.findItem(2131624234);
    this.refreshItem = localMenuItem3;
    MenuItem localMenuItem4 = paramMenu.findItem(2131624235);
    this.shareItem = localMenuItem4;
    return false;
  }

  protected void onDestroy()
  {
    if (this.mldPicTsk != null)
    {
      AsyncTask.Status localStatus1 = this.mldPicTsk.getStatus();
      AsyncTask.Status localStatus2 = AsyncTask.Status.RUNNING;
      if (localStatus1 == localStatus2)
      {
        boolean bool1 = this.mldPicTsk.cancel(0);
        this.mldPicTsk = null;
      }
    }
    if (this.numTask != null)
    {
      AsyncTask.Status localStatus3 = this.numTask.getStatus();
      AsyncTask.Status localStatus4 = AsyncTask.Status.RUNNING;
      if (localStatus3 == localStatus4)
      {
        boolean bool2 = this.numTask.cancel(0);
        this.numTask = null;
      }
    }
    boolean bool3 = FileUtil.deleteDependon(this.downloadedImage);
    super.onDestroy();
  }

  public boolean onLongClick(View paramView)
  {
    switch (paramView.getId())
    {
    case 2131623980:
    default:
    case 2131623981:
    case 2131623979:
    }
    while (true)
    {
      return false;
      showDialog(1002);
      continue;
      showDialog(1003);
    }
  }

  public boolean onOptionsItemSelected(MenuItem paramMenuItem)
  {
    switch (paramMenuItem.getItemId())
    {
    default:
    case 2131624233:
    case 2131624234:
    case 2131624235:
    case 2131624232:
    }
    while (true)
    {
      return super.onOptionsItemSelected(paramMenuItem);
      boolean bool1 = this.sendChng.sendEmptyMessageDelayed(1008, 500L);
      continue;
      boolean bool2 = this.sendChng.sendEmptyMessageDelayed(1007, 500L);
      continue;
      showDialog(1);
      continue;
      Intent localIntent1 = new Intent();
      Context localContext = getApplicationContext();
      Intent localIntent2 = localIntent1.setClass(localContext, MainTabActivity.class);
      startActivity(localIntent2);
    }
  }

  public boolean onPrepareOptionsMenu(Menu paramMenu)
  {
    MenuItem localMenuItem1 = this.deleteItem;
    boolean bool1 = this.isSelf;
    MenuItem localMenuItem2 = localMenuItem1.setVisible(bool1);
    MenuItem localMenuItem3 = this.refreshItem;
    boolean bool2 = this.needRefresh;
    MenuItem localMenuItem4 = localMenuItem3.setVisible(bool2);
    return true;
  }

  class DeleteWeiboTask extends AsyncTask<Void, Void, Boolean>
  {
    private DeleteWeiboTask()
    {
    }

    protected Boolean doInBackground(Void[] paramArrayOfVoid)
    {
      try
      {
        RPCHelper localRPCHelper = RPCHelper.getInstance(DetailWeiboActivity.this);
        User localUser = DetailWeiboActivity.this.mUsr;
        String str1 = DetailWeiboActivity.this.mMblog.mblogid;
        boolean bool1 = localRPCHelper.deleteMBlog(localUser, str1);
        String str2 = DetailWeiboActivity.this.mMblog.mblogid;
        String str3 = DetailWeiboActivity.this.getCacheDir().getAbsolutePath();
        boolean bool2 = Utils.deleteCacheItem(str2, 0, str3);
        if (bool1)
        {
          DetailWeiboActivity localDetailWeiboActivity = DetailWeiboActivity.this;
          Intent localIntent1 = new Intent("com.sina.weibo.intent.action.BLOG_DELETE").addCategory("android.intent.category.DEFAULT");
          String str4 = DetailWeiboActivity.this.mMblog.mblogid;
          Intent localIntent2 = localIntent1.putExtra("com.sina.weibo.intent.extra.BLOG_ID", str4);
          localDetailWeiboActivity.sendBroadcast(localIntent2);
        }
        label128: return Boolean.valueOf(bool1);
      }
      catch (RPCHelper.HttpException localHttpException)
      {
        break label128;
      }
    }

    protected void onPostExecute(Boolean paramBoolean)
    {
      super.onPostExecute(paramBoolean);
      DetailWeiboActivity.this.deleteWeiboRunning = 0;
      DetailWeiboActivity.this.setTitleProgressbarInvisible();
      if (!paramBoolean.booleanValue())
        Toast.makeText(DetailWeiboActivity.this, 2131427563, 0).show();
      while (true)
      {
        return;
        Toast.makeText(DetailWeiboActivity.this, 2131427564, 0).show();
        DetailWeiboActivity.this.finish();
      }
    }

    protected void onPreExecute()
    {
      super.onPreExecute();
      DetailWeiboActivity.this.setProgressBarIndeterminateVisibility(1);
      DetailWeiboActivity.this.deleteWeiboRunning = 1;
    }
  }

  class FavSndingTsk extends AsyncTask<Integer, Void, Object[]>
  {
    private FavSndingTsk()
    {
    }

    protected Object[] doInBackground(Integer[] paramArrayOfInteger)
    {
      int i = 0;
      int j = 0;
      try
      {
        boolean bool1;
        if (paramArrayOfInteger[0].intValue() == 1000)
        {
          Object[] arrayOfObject1 = (Object[])0;
          RPCHelper localRPCHelper1 = RPCHelper.getInstance(DetailWeiboActivity.this);
          User localUser1 = DetailWeiboActivity.this.mUsr;
          String str1 = DetailWeiboActivity.this.mMblog.mblogid;
          Object[] arrayOfObject2 = localRPCHelper1.addFavMBlog(localUser1, str1);
          bool1 = ((Boolean)arrayOfObject2[0]).booleanValue();
          MBlog localMBlog = DetailWeiboActivity.this.mMblog;
          String str2 = (String)arrayOfObject2[1];
          localMBlog.favid = str2;
        }
        while (true)
        {
          label100: Object[] arrayOfObject3 = new Object[2];
          Integer localInteger = paramArrayOfInteger[0];
          arrayOfObject3[0] = localInteger;
          Boolean localBoolean = Boolean.valueOf(bool1);
          arrayOfObject3[1] = localBoolean;
          return arrayOfObject3;
          j = 0;
          if (paramArrayOfInteger[j].intValue() != 1006)
            continue;
          RPCHelper localRPCHelper2 = RPCHelper.getInstance(DetailWeiboActivity.this);
          User localUser2 = DetailWeiboActivity.this.mUsr;
          String str3 = DetailWeiboActivity.this.mMblog.favid;
          String str4 = DetailWeiboActivity.this.mMblog.mblogid;
          bool1 = localRPCHelper2.deleteFavMBlog(localUser2, str3, str4);
          String str5 = DetailWeiboActivity.this.mMblog.mblogid;
          String str6 = DetailWeiboActivity.this.getCacheDir().getAbsolutePath();
          boolean bool2 = Utils.deleteCacheItem(str5, 1, str6);
        }
      }
      catch (RPCHelper.HttpException localHttpException)
      {
        break label100;
      }
    }

    protected void onCancelled()
    {
      super.onCancelled();
      DetailWeiboActivity.this.tvFav.setEnabled(1);
    }

    protected void onPostExecute(Object[] paramArrayOfObject)
    {
      super.onPostExecute(paramArrayOfObject);
      DetailWeiboActivity.this.favSndingRunning = 0;
      DetailWeiboActivity.this.setTitleProgressbarInvisible();
      int i = ((Integer)paramArrayOfObject[0]).intValue();
      boolean bool = ((Boolean)paramArrayOfObject[1]).booleanValue();
      DetailWeiboActivity localDetailWeiboActivity2;
      if (i == 1000)
        if (bool)
        {
          DetailWeiboActivity localDetailWeiboActivity1 = DetailWeiboActivity.this;
          String str1 = DetailWeiboActivity.this.getString(2131427482);
          Toast.makeText(localDetailWeiboActivity1, str1, 0).show();
          localDetailWeiboActivity2 = DetailWeiboActivity.this;
          if (DetailWeiboActivity.this.isFav)
          {
            int j = 0;
            localDetailWeiboActivity2.isFav = j;
            DetailWeiboActivity.this.tvFav.setCompoundDrawablesWithIntrinsicBounds(0, 2130837595, 0, 0);
            TextView localTextView1 = DetailWeiboActivity.this.tvFav;
            String str2 = DetailWeiboActivity.this.getString(2131427517);
            localTextView1.setText(str2);
          }
        }
      while (true)
      {
        DetailWeiboActivity.this.tvFav.setEnabled(1);
        return;
        int k = 1;
        break;
        DetailWeiboActivity localDetailWeiboActivity3 = DetailWeiboActivity.this;
        String str3 = DetailWeiboActivity.this.getString(2131427483);
        Toast.makeText(localDetailWeiboActivity3, str3, 0).show();
        continue;
        if (i != 1006)
          continue;
        if (bool)
        {
          DetailWeiboActivity localDetailWeiboActivity4 = DetailWeiboActivity.this;
          String str4 = DetailWeiboActivity.this.getString(2131427484);
          Toast.makeText(localDetailWeiboActivity4, str4, 0).show();
          localDetailWeiboActivity2 = DetailWeiboActivity.this;
          if (DetailWeiboActivity.this.isFav);
          int m;
          for (k = 0; ; m = 1)
          {
            localDetailWeiboActivity2.isFav = k;
            TextView localTextView2 = DetailWeiboActivity.this.tvFav;
            String str5 = DetailWeiboActivity.this.getString(2131427516);
            localTextView2.setText(str5);
            DetailWeiboActivity.this.tvFav.setCompoundDrawablesWithIntrinsicBounds(0, 2130837598, 0, 0);
            break;
          }
        }
        DetailWeiboActivity localDetailWeiboActivity5 = DetailWeiboActivity.this;
        String str6 = DetailWeiboActivity.this.getString(2131427485);
        Toast.makeText(localDetailWeiboActivity5, str6, 0).show();
      }
    }

    protected void onPreExecute()
    {
      super.onPreExecute();
      DetailWeiboActivity.this.setProgressBarIndeterminateVisibility(1);
      DetailWeiboActivity.this.favSndingRunning = 1;
    }
  }

  class LoadCRNumTask extends AsyncTask<Void, Void, int[]>
  {
    private LoadCRNumTask()
    {
    }

    protected int[] doInBackground(Void[] paramArrayOfVoid)
    {
      try
      {
        RPCHelper localRPCHelper1;
        User localUser1;
        String[] arrayOfString1;
        if (DetailWeiboActivity.this.mMblog.rtrootid != null)
        {
          String str1 = DetailWeiboActivity.this.mMblog.rtrootid;
          if (!"".equals(str1));
        }
        else
        {
          localRPCHelper1 = RPCHelper.getInstance(DetailWeiboActivity.this);
          localUser1 = DetailWeiboActivity.this.mUsr;
          arrayOfString1 = new String[1];
          String str2 = DetailWeiboActivity.this.mMblog.mblogid;
          arrayOfString1[0] = str2;
        }
        int[] arrayOfInt;
        for (localObject = localRPCHelper1.getMblogCRNum(localUser1, arrayOfString1); ; localObject = arrayOfInt)
        {
          return localObject;
          RPCHelper localRPCHelper2 = RPCHelper.getInstance(DetailWeiboActivity.this);
          User localUser2 = DetailWeiboActivity.this.mUsr;
          String[] arrayOfString2 = new String[2];
          String str3 = DetailWeiboActivity.this.mMblog.mblogid;
          arrayOfString2[0] = str3;
          String str4 = DetailWeiboActivity.this.mMblog.rtrootid;
          arrayOfString2[1] = str4;
          arrayOfInt = localRPCHelper2.getMblogCRNum(localUser2, arrayOfString2);
        }
      }
      catch (RPCHelper.HttpException localHttpException)
      {
        while (true)
          Object localObject = null;
      }
    }

    protected void onPostExecute(int[] paramArrayOfInt)
    {
      super.onPostExecute(paramArrayOfInt);
      DetailWeiboActivity.this.loadCRNumRunning = 0;
      DetailWeiboActivity.this.setTitleProgressbarInvisible();
      if (paramArrayOfInt != null)
      {
        if (paramArrayOfInt[0] >= 0)
          break label347;
        i = DetailWeiboActivity.this.mMblog.rtnum;
        String str1 = String.valueOf(i);
        Button localButton1 = DetailWeiboActivity.this.btRedirect;
        String str2 = String.valueOf(DetailWeiboActivity.this.getString(2131427432));
        String str3 = str2 + str1;
        localButton1.setText(str3);
        if (paramArrayOfInt[1] >= 0)
          break label374;
        i = DetailWeiboActivity.this.mMblog.commentnum;
        label112: String str4 = String.valueOf(i);
        Button localButton2 = DetailWeiboActivity.this.btComment2;
        String str5 = String.valueOf(DetailWeiboActivity.this.getString(2131427433));
        String str6 = str5 + str4;
        localButton2.setText(str6);
        if (DetailWeiboActivity.this.mMblog.rtrootid != null)
        {
          String str7 = DetailWeiboActivity.this.mMblog.rtrootid;
          if (!"".equals(str7))
          {
            if (paramArrayOfInt[2] >= 0)
              break label401;
            i = DetailWeiboActivity.this.mMblog.rtnum;
            label219: String str8 = String.valueOf(i);
            TextView localTextView1 = DetailWeiboActivity.this.tvRedirectRt;
            String str9 = String.valueOf(DetailWeiboActivity.this.getString(2131427432));
            String str10 = str9 + str8;
            localTextView1.setText(str10);
            if (paramArrayOfInt[3] >= 0)
              break label428;
          }
        }
      }
      label347: label374: int n;
      for (int i = DetailWeiboActivity.this.mMblog.commentnum; ; i = n)
      {
        String str11 = String.valueOf(i);
        TextView localTextView2 = DetailWeiboActivity.this.tvCommentRt;
        String str12 = String.valueOf(DetailWeiboActivity.this.getString(2131427433));
        String str13 = str12 + str11;
        localTextView2.setText(str13);
        return;
        MBlog localMBlog1 = DetailWeiboActivity.this.mMblog;
        int j = paramArrayOfInt[0];
        localMBlog1.rtnum = j;
        i = j;
        break;
        MBlog localMBlog2 = DetailWeiboActivity.this.mMblog;
        int k = paramArrayOfInt[1];
        localMBlog2.commentnum = k;
        i = k;
        break label112;
        label401: MBlog localMBlog3 = DetailWeiboActivity.this.mMblog;
        int m = paramArrayOfInt[2];
        localMBlog3.rtnum = m;
        i = m;
        break label219;
        label428: MBlog localMBlog4 = DetailWeiboActivity.this.mMblog;
        n = paramArrayOfInt[3];
        localMBlog4.commentnum = n;
      }
    }

    protected void onPreExecute()
    {
      super.onPreExecute();
      DetailWeiboActivity.this.setProgressBarIndeterminateVisibility(1);
      DetailWeiboActivity.this.loadCRNumRunning = 1;
    }
  }

  class LoadPictureTask extends AsyncTask<Object, Void, Object[]>
  {
    private LoadPictureTask()
    {
    }

    protected Object[] doInBackground(Object[] paramArrayOfObject)
    {
      String str1 = (String)paramArrayOfObject[0];
      ImageView localImageView1 = (ImageView)paramArrayOfObject[1];
      ImageView localImageView2 = (ImageView)paramArrayOfObject[2];
      try
      {
        DetailWeiboActivity localDetailWeiboActivity = DetailWeiboActivity.this;
        RPCHelper localRPCHelper = RPCHelper.getInstance(DetailWeiboActivity.this);
        String str2 = DetailWeiboActivity.this.getCacheDir().getAbsolutePath();
        String str3 = localRPCHelper.getPicture(str1, str2, 1);
        File localFile = new File(str3);
        localDetailWeiboActivity.downloadedImage = localFile;
        if (FileUtil.doesExisted(DetailWeiboActivity.this.downloadedImage))
        {
          BitmapFactory.Options localOptions = new BitmapFactory.Options();
          localOptions.inJustDecodeBounds = 0;
          Bitmap.Config localConfig = Bitmap.Config.ARGB_4444;
          localOptions.inPreferredConfig = localConfig;
          localBitmap = BitmapFactory.decodeFile(DetailWeiboActivity.this.downloadedImage.getAbsolutePath(), localOptions);
          if (localBitmap == null)
            boolean bool = FileUtil.deleteDependon(DetailWeiboActivity.this.downloadedImage);
        }
        else
        {
          for (arrayOfObject = null; ; arrayOfObject = null)
            return arrayOfObject;
        }
      }
      catch (Exception localException)
      {
        while (true)
        {
          Bitmap localBitmap;
          Object[] arrayOfObject = null;
          continue;
          arrayOfObject = new Object[3];
          arrayOfObject[0] = localBitmap;
          arrayOfObject[1] = localImageView1;
          arrayOfObject[2] = localImageView2;
        }
      }
    }

    protected void onPostExecute(Object[] paramArrayOfObject)
    {
      DetailWeiboActivity.this.loadPictureRunning = 0;
      DetailWeiboActivity.this.setTitleProgressbarInvisible();
      if ((paramArrayOfObject != null) && (paramArrayOfObject[0] != 0))
      {
        ImageView localImageView1 = (ImageView)paramArrayOfObject[1];
        Bitmap localBitmap1 = (Bitmap)paramArrayOfObject[0];
        localImageView1.setImageBitmap(localBitmap1);
        ((ImageView)paramArrayOfObject[1]).setBackgroundResource(2130837607);
        ImageView localImageView2 = (ImageView)paramArrayOfObject[2];
        Bitmap localBitmap2 = (Bitmap)paramArrayOfObject[0];
        localImageView2.setImageBitmap(localBitmap2);
        ((ImageView)paramArrayOfObject[2]).setBackgroundResource(2130837607);
        DetailWeiboActivity.this.finishPicLoad = 1;
        if (!DetailWeiboActivity.this.isRedirectBlog)
          break label176;
        DetailWeiboActivity.this.ivSrcPic.setVisibility(0);
        DetailWeiboActivity.this.ivPic.setVisibility(8);
        DetailWeiboActivity.this.rlPic.setVisibility(8);
      }
      while (true)
      {
        return;
        DetailWeiboActivity localDetailWeiboActivity = DetailWeiboActivity.this;
        String str = DetailWeiboActivity.this.getString(2131427410);
        Toast.makeText(localDetailWeiboActivity, str, 0).show();
        break;
        label176: DetailWeiboActivity.this.ivSrcPic.setVisibility(8);
        DetailWeiboActivity.this.ivPic.setVisibility(0);
        DetailWeiboActivity.this.rlPic.setVisibility(0);
      }
    }

    protected void onPreExecute()
    {
      super.onPreExecute();
      DetailWeiboActivity.this.setProgressBarIndeterminateVisibility(1);
      DetailWeiboActivity.this.loadPictureRunning = 1;
      DetailWeiboActivity.this.finishPicLoad = 0;
    }
  }

  class ReportWeiboTask extends AsyncTask<String, Void, Boolean>
  {
    String error = null;

    private ReportWeiboTask()
    {
    }

    protected Boolean doInBackground(String[] paramArrayOfString)
    {
      int i = 0;
      try
      {
        RPCHelper localRPCHelper = RPCHelper.getInstance(DetailWeiboActivity.this);
        User localUser = StaticInfo.mUser;
        String str1 = DetailWeiboActivity.this.mMblog.mblogid;
        String str2 = paramArrayOfString[0];
        int j = localRPCHelper.reportBlog(localUser, str1, str2);
        i = j;
        return Boolean.valueOf(i);
      }
      catch (RPCHelper.HttpException localHttpException)
      {
        while (true)
        {
          DetailWeiboActivity localDetailWeiboActivity = DetailWeiboActivity.this;
          Throwable localThrowable = Utils.getRootCause(localHttpException);
          String str3 = Utils.translationThrowable(localDetailWeiboActivity, localThrowable);
          this.error = str3;
        }
      }
    }

    protected void onPostExecute(Boolean paramBoolean)
    {
      super.onPostExecute(paramBoolean);
      if ((this.error == null) || (this.error.length() == 0))
      {
        String str1 = DetailWeiboActivity.this.getString(2131427618);
        this.error = str1;
      }
      if (paramBoolean.booleanValue())
        Toast.makeText(DetailWeiboActivity.this, 2131427617, 0).show();
      while (true)
      {
        return;
        DetailWeiboActivity localDetailWeiboActivity = DetailWeiboActivity.this;
        String str2 = this.error;
        Toast.makeText(localDetailWeiboActivity, str2, 0).show();
      }
    }

    protected void onPreExecute()
    {
      super.onPreExecute();
      this.error = "";
      Toast.makeText(DetailWeiboActivity.this, 2131427616, 0).show();
    }
  }
}

/* Location:           D:\Program Files\eclipse\apktool-r01-3\新浪微博\classes.dex.dex2jar.jar
 * Qualified Name:     com.sina.weibo.DetailWeiboActivity
 * JD-Core Version:    0.6.0
 */